/**
 * 名称：展示完成的Flags页面
 */
import 'package:flutter/material.dart';
import 'package:flutter_todo_2019/page/flags/FlagsDetailPage.dart';

class FlagsFinishListPage extends StatelessWidget {
  const FlagsFinishListPage({Key key, this.title}) : super(key: key);
  final title;

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return new Scaffold(
      appBar: new AppBar(
        title: new Text(title,
            style: TextStyle(color: Colors.white, fontSize: 16)),
        centerTitle: true,
      ),
      body: new Column(
        mainAxisSize: MainAxisSize.max,
        crossAxisAlignment: CrossAxisAlignment.center,
        children: <Widget>[
          new MaterialButton(
              color: Colors.blue,
              child: new Text('点我跳转到编辑详情页',
                  style: TextStyle(color: Colors.white, fontSize: 16)),
              onPressed: () {
                Navigator.of(context).push(
                    new MaterialPageRoute(builder: (BuildContext context) {
                  return new FlagsDetailPage(title: '留下你的Flags');
                  ;
                }));
              }),
          new MaterialButton(
              color: Colors.blue,
              child: new Text('自定义View',
                  style: TextStyle(color: Colors.white, fontSize: 16)),
              onPressed: () {
                Navigator.of(context).push(
                    new MaterialPageRoute(builder: (BuildContext context) {
                  return new FlagsDetailPage(title: '留下你的Flags');
                  ;
                }));
              }),
          new MaterialButton(
              color: Colors.blue,
              child: new Text('点我跳转到编辑详情页',
                  style: TextStyle(color: Colors.white, fontSize: 16)),
              onPressed: () {
                Navigator.of(context).push(
                    new MaterialPageRoute(builder: (BuildContext context) {
                  return new FlagsDetailPage(title: '留下你的Flags');
                  ;
                }));
              }),
        ],
      ),
    );
  }
}
